﻿using Android.App;
using Android.Content.PM;
using Android.OS;
using CN.Jpush.Android.Api;

namespace JPush.Test {

    [Activity(Label = "Notification", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
    public class MainActivity : InstrumentedActivity  {
        protected override void OnCreate(Bundle bundle) {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);
#if DEBUG
            JPushInterface.SetDebugMode(true);
#endif
            JPushInterface.Init(ApplicationContext);
        }

        protected override void OnResume() {
            base.OnResume();

            JPushInterface.OnResume(ApplicationContext);
        }

        protected override void OnPause() {
            base.OnPause();

            JPushInterface.OnPause(ApplicationContext);
        }
    }
}

